package day05.Test3;

public class TestSimpleMapper {
    public static void main(String[] args) throws IllegalAccessException, ClassNotFoundException, InstantiationException, NoSuchFieldException {
        Person p1 = new Person("Lucky", 18,"female" );
        String str = SimpleMapper.toString(p1);
        System.out.print(str);
        Person p2 = (Person) SimpleMapper.fromString(str);
        System.out.println(p2);

    }
}
